package com.wanlink.mall.app;

import android.app.Application;
import android.content.Context;

import com.wanlink.mall.http.HttpManager;
import com.wanlink.mall.util.DensityUtil;
import com.wanlink.mall.util.UIUtils;

/**
 * @auchor Create by chenqm on 2019/6/20 14:59
 * @description
 */
public class MyApplication extends Application {


    private static Context sContext = null;

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this.getApplicationContext();
        initUtil();
        HttpManager.getInstance().init();

    }

    public void initUtil(){
        DensityUtil.initContext(this);
        UIUtils.initContext(this);
    }

    public static Context getContext() {
        return sContext;
    }
}
